singleApp.controller('rewardsCtrl', ['$http', '$scope', '$sce', function ($http, $scope, $sce) {
    $scope.list = [];

    //Init
    $scope.init = function () {
        layer.load(2);
        var api_url = window.singleConfig.rootUrl + "api/admin/UsersService/getAllReward";

        $http.get(api_url).then(function (result) {
            var data = result.data;
            $scope.list = data.data;
            layer.closeAll();
        }, function () { });
    };

    $scope.init();
}]);